#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
int main()
{
  pid_t pid;
  /* fork another process */
  pid = fork();
  if (pid < 0)
  { /* error occurred */
    fprintf(stderr, "Fork Failed");
    return 1;
  }
  else if (pid == 0)
  {
    execlp("/bin/ls","ls",NULL);
    perror("execlp");
    _exit(1); 
  }
  else
  {
    waitpid(pid, NULL,0);
    printf("partner work compilt\n"); 
  }
  return 0;
}
